/**
* 通用css样式布局处理
* Copyright (c) 2019 ruoyi
*/

/** 基础通用 **/
.pt5 {
  padding-top: 5px;
}

.pr5 {
  padding-right: 5px;
}

.pb5 {
  padding-bottom: 5px;
}

.mt5 {
  margin-top: 5px;
}

.mr5 {
  margin-right: 5px;
}

.mb5 {
  margin-bottom: 5px;
}

.mb8 {
  margin-bottom: 8px;
}

.ml5 {
  margin-left: 5px;
}

.mt10 {
  margin-top: 10px;
}

.mr10 {
  margin-right: 10px;
}

.mb10 {
  margin-bottom: 10px;
}
.ml10 {
  margin-left: 10px;
}

.mt20 {
  margin-top: 20px;
}

.mr20 {
  margin-right: 20px;
}

.mb20 {
  margin-bottom: 20px;
}
.ml20 {
  margin-left: 20px;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  font-weight: 500;
  line-height: 1.1;
  color: inherit;
}

.el-message-box__status + .el-message-box__message {
  word-break: break-word;
}

.el-dialog:not(.is-fullscreen) {
  margin-top: 6vh !important;
}

.el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body {
  overflow: auto;
  overflow-x: hidden;
  max-height: 70vh;
  padding: 10px 20px 0;
}

.el-table {
  .el-table__header-wrapper,
  .el-table__fixed-header-wrapper {
    th {
      word-break: break-word;
      background-color: #f8f8f9;
      color: #515a6e;
      height: 40px;
      font-size: 13px;
    }
  }

  .el-table__body-wrapper {
    .el-button [class*="el-icon-"] + span {
      margin-left: 1px;
    }
  }
}

/** 表单布局 **/
.form-header {
  font-size: 15px;
  color: #6379bb;
  border-bottom: 1px solid #ddd;
  margin: 8px 10px 25px 10px;
  padding-bottom: 5px;
}

/** 表格布局 **/
.pagination-container {
  position: relative;
  height: 25px;
  margin-bottom: 10px;
  margin-top: 15px;
  padding: 10px 20px !important;
}

/* tree border */
.tree-border {
  margin-top: 5px;
  border: 1px solid #e5e6e7;
  background: #ffffff none;
  border-radius: 4px;
}

.pagination-container .el-pagination {
  right: 0;
  position: absolute;
}

@media (max-width: 768px) {
  .pagination-container .el-pagination > .el-pagination__jump {
    display: none !important;
  }
  .pagination-container .el-pagination > .el-pagination__sizes {
    display: none !important;
  }
}

.el-table .fixed-width .el-button--mini {
  padding-left: 0;
  padding-right: 0;
  width: inherit;
}

/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link,
.el-table .el-dropdown-selfdefine {
  cursor: pointer;
  margin-left: 5px;
}

.el-table .el-dropdown,
.el-icon-arrow-down {
  font-size: 12px;
}

.el-tree-node__content > .el-checkbox {
  margin-right: 8px;
}

.list-group-striped > .list-group-item {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.list-group {
  padding-left: 0px;
  list-style: none;
}

.list-group-item {
  border-bottom: 1px solid #e7eaec;
  border-top: 1px solid #e7eaec;
  margin-bottom: -1px;
  padding: 11px 0px;
  font-size: 13px;
}

.pull-right {
  float: right !important;
}

.el-card__header {
  padding: 14px 15px 7px;
  min-height: 40px;
}

.el-card__body {
  padding: 15px 20px 20px 20px;
}

.card-box {
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
  background: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
  background: #48d1cc;
  border-color: #48d1cc;
  color: #ffffff;
}

.el-button--cyan {
  background-color: #20b2aa;
  border-color: #20b2aa;
  color: #ffffff;
}

/* text color */
.text-navy {
  color: #1ab394;
}

.text-primary {
  color: inherit;
}

.text-success {
  color: #1c84c6;
}

.text-info {
  color: #23c6c8;
}

.text-warning {
  color: #f8ac59;
}

.text-danger {
  color: #ed5565;
}

.text-muted {
  color: #888888;
}

/* image */
.img-circle {
  border-radius: 50%;
}

.img-lg {
  width: 120px;
  height: 120px;
}

.avatar-upload-preview {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 4px #ccc;
  overflow: hidden;
}

/* 拖拽列样式 */
.sortable-ghost {
  opacity: 0.8;
  color: #fff !important;
  background: #42b983 !important;
}

.top-right-btn {
  position: relative;
  float: right;
}

.dialog-footer-options {
  position: absolute;
  bottom: 0px;
  padding: 5px;
  text-align: center;
  width: 100%;
}

// 单号
.orderNo {
  font-size: 20px;
  font-weight: 700;
  padding-left: 10px;
  padding-bottom: 10px;
}

.pay-amount-div {
  text-align: right;
  margin-right: 20px;
}

.pay-amount-div span {
  color: red;
  font-size: 36px;
}

.vue-treeselect__control {
  height: 28px !important;
}
.vue-treeselect__placeholder,
.vue-treeselect__single-value {
  line-height: 26px !important;
}
.vue-treeselect__placeholder,
.vue-treeselect__single-value {
  line-height: 26px;
}

.el-dialog{
  max-height:1100px;
}

.el-dialog__header{
  border-bottom: 1px dashed #d6d6d6;
}

.el-dialog__body{
  padding-top:15px;
  padding-bottom: 10px;
  max-height: 950px;
  overflow: auto;
}

.el-dialog__body > .app-container{
  padding:0px;
}

.el-dialog__footer{
  padding-bottom: 10px;
}


@media print {
  .no-print {
    display: none; /* 在打印模式下不显示带有no-print类的元素 */
  }
}

.no-print{
  .refresh{
    display: none;
  }
}


.el-select {
  width: 100%;
}

.el-date-editor.el-input,
.el-date-editor.el-input__inner {
  width: 100%;
}

//隐藏页眉页脚
@media print {
  body {
      margin: 0;
      padding: 0;
  }

  @page {
      margin: 0 10px;
  }

  header,
  footer {
      display: none;
  }

  /* 确保所有需要打印的元素都可见 */
  .noprint {
    display: none;
  }
  /* 调整需要打印元素的样式 */
  .print-content {
    width: 100%;
    font-size: 12pt;
  }
}

@page {
  size: auto;
  margin: 3mm;
}
@media print {
  html {
    background-color: #ffffff;
    height: auto;
    margin: 0px;
  }
 
  body {
    border: solid 1px #ffffff;
    margin: 10mm 15mm 10mm 15mm;
  }
  table {
    table-layout: auto !important;
  }
 
  .el-table__header-wrapper .el-table__header {
    width: 100% !important;
    border: solid 1px #f2f2f2;
  }
  .el-table__body-wrapper .el-table__body {
    width: 100% !important;
  }
  #pagetable table {
    table-layout: fixed !important;
  }
  .el-descriptions-item__container{
    span{
      font-weight: 600;
    }
    
  }
  .el-descriptions{
    font-family: Microsoft YaHei;
  }
}
/* 主表格样式设置 */
.table_print {
  border: 1px solid #000; /* 设置表格整体边框为3px宽，颜色为水蓝色 */
  width: 100%; /* 表格宽度占屏幕宽度的80%，以支持响应式设计 */
  margin: 20px auto; /* 设置表格上下间距为20px，并在页面中水平居中 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 为表格添加轻微的阴影，增强视觉深度感 */
  border-collapse: collapse; /* 边框合并，移除单元格之间的间隔 */
}
.el-descriptions{
  font-family: Microsoft YaHei;
}
/* 设置表头和单元格的公共样式 */
.table_print  {
  th, td{
    border: 2px solid #000; /* 单元格边框设置为2px宽，蓝色，增加视觉辨识度 */
    padding: 10px; /* 单元格内部填充10px，使内容更为舒展 */
    text-align: center; /* 文本居中显示，使表格内容整齐划一 */
    background-color: #f8f9fa; /* 单元格背景颜色设置为浅灰蓝色，柔和不刺眼 */
  }
}

.head-print {
  div{
    width: 25%;
    float: left;
    padding: 0px 0px 10px 0px;
  }
}
.head-print-5{
  div{
    width: 20%;
    float: left;
    padding: 0px 0px 10px 0px;
  }
}
.head-print-3{
  div{
    width: 33%;
    float: left;
    padding: 0px 0px 10px 0px;
  }
}
.head-print-2{
  div{
    width: 50%;
    float: left;
    padding: 0px 0px 10px 0px;
  }
}
.bottom-print{
  div{
    width: 25%;
    float: left;
    padding: 0px 0px 10px 0px;
  }
}
.single-line-print{
  padding-top: 10px;
  width: 100%;
}
